<!DOCTYPE php PUBLIC "-//W3C//DTD php 4.01 Transitional//EN" "http://www.w3.org/TR/php4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/php; charset=UTF-8">
<title>Profile</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/bootstrap-responsive.css" rel="stylesheet">
<link href="css/bootstrap-override.css" rel="stylesheet">
<link href="css/test.css" rel="stylesheet">
<link href="css/main.css" rel="stylesheet">



<?php
   if(isset($_POST["user"])){
    include 'mysql_connect.php';
    $username = $_POST["user"];
    $password = $_POST["pass"];
    $sql = "SELECT * FROM username_info WHERE username='$username'and password='$password'";
    $result = mysql_query($sql);
    $count = mysql_num_rows($result);
    if(mysql_num_rows($result)) {
    }
    else {
        // Invalid username/password
        header('Location: http://findmyeteam.phpfogapp.com/');
        echo '<p><strong>Error:</strong> Invalid username or password.</p>';
    }
  } else {
     header('Location: http://findmyeteam.phpfogapp.com/');
  }
?>

</head>

<body>
<div class="container">
    <div class= "row">
        <div class="span3">
            <div class="about-box">
                <img src="./img/text.png"/>
            </div>
        </div>
            <div class="row">
                <div class="span1 offset1">
                    <div class="header-box">
                        <h2><a href="index.php">Home</a></h2>
                            <div class="header-text-box">
                                <p>Build Solutions</p>
                            </div>
                        </div>
                    </div>
                <div class="span1 offset1">
                    <div class="header-box">
                        <h2>Profile</h2>
                            <div class="header-text-box">
                                <p>Manage Profile</p>
                            </div>
                        </div>
                    </div>
                <div class="span1 offset1">
                    <div class="header-box">
                        <h2><a href="browse.php">Browse</a></h2>
                        <div class="header-text-box">
                            <p>Browse Profiles </p>
                        </div>
                    </div>
                </div>
                    <div class="span1 offset1">
                        <div class="header-box">
                            <h2><a href="results.php">Results</a></h2>
                            <div class="header-text-box">
                                <p>Check Matches</p>
                            </div>
                        </div>
                    </div>
                </div>
                
                <div class="row">
                    <div class="span6 offset1">
                    <?php $sqlFirstName = "SELECT firstname FROM username_info WHERE username=" . "'" . $username . "'";
                        $resultFirstName = mysql_query($sqlFirstName);
                        $firstName = mysql_result($resultFirstName,0); 
                        $sqlLastName = "SELECT lastname FROM username_info WHERE username=" . "'" . $username . "'";
                        $resultLastName = mysql_query($sqlLastName);
                        $lastName = mysql_result($resultLastName,0);
                        $name = $firstName . " " . $lastName;
                    ?> 
                        <h2>Welcome, <?PHP echo $name ?> to your profile!</h2>
                    </div>
                </div>
            </div>

                    <div class="row">
                            Name:
                            <div id="first_name">
                                <?php $sqlFirstName = "SELECT firstname FROM username_info WHERE username=" . "'" . $username . "'";
                                $resultFirstName = mysql_query($sqlFirstName);
                                $firstName = mysql_result($resultFirstName,0); 
                                ?>
                            </div>
                            <div id="last_name">
                                <?php $sqlLastName = "SELECT lastname FROM username_info WHERE username=" . "'" . $username . "'";
                                $resultLastName = mysql_query($sqlLastName);
                                $lastName = mysql_result($resultLastName,0);
                                echo $firstName . " " . $lastName;
                                ?> 
                            </div>
                            </br>
                            
                            Email:
                            <div id="email_address">
                                <?php $sqlemail = "SELECT email FROM username_info WHERE username=" . "'" . $username . "'";
                                    $resultemail = mysql_query($sqlemail);
                                    $email = mysql_result($resultemail,0);
                                    echo $email;
                                ?>
                            </div>
                            </br>
                            

                            Skills:
                        <div id="user_skills">
                            <?php $sqlskills = "SELECT skills FROM skills WHERE username=" . "'" . $username . "'";
                                $resultskills = mysql_query($sqlskills);
                                echo "<ul>";
                                while ($row = mysql_fetch_array($resultskills)) {
                                    echo ("<li>" . $row["skills"] . "</li>");
                                }
                                echo "</ul>";
                            ?>
                        </div>
                    </div>
                    <div class="span2">
                        <!-- Paypal Scrape: "https://www.paypal.com/cgi-bin/webscr" -->
                        <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
                            <input type="hidden" name="cmd" value="_s-xclick">
                            <table>
                                <tr><td><input type="hidden" name="on0" value="Payment Options">Payment Options</td></tr><tr><td><select name="os0">
                                <option value="Monthly">Monthly : $5.00USD - monthly</option>
                                <option value="Yearly">Yearly : $20.00USD - yearly</option>
                            </select> </td></tr></table>
                            <input type="hidden" name="currency_code" value="USD">
                            <input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIIIQYJKoZIhvcNAQcEoIIIEjCCCA4CAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYBIcSq5UHQAwzBprdR/NPK9JECvqCI8bfJorPxM/GXwSdePZfFjA+R8U8ORYgEXC1S8QXuU+qdJmU+CrQYsXxSl9nzoUe0BlW2hT4l9HRaLsl/dCQFn92yNADlto7SYG4pjfdTAy2pKvnczCmivRGwDeShA+ZYZibFgikm5dpDqQTELMAkGBSsOAwIaBQAwggGdBgkqhkiG9w0BBwEwFAYIKoZIhvcNAwcECBPIfXhfZQNSgIIBeL90XJEuC9TY38GpNE7wMeyZMVjhts+vNfin7F/K12rXdBtOuwA4w02wl6XhFw1RMy6CUoOnc9ppkPB3k2faRnj+M1ZEApihmTtkgcx+ntI9Ln6acwnZSXhPntWi16tMsOBuFybOU6MqIvLVurkQmZJQ39krCScQuSR2Wr5CJRycxEBerga8038HX1cpZjDw/j3SBgxYaAhurL2yplY0sUaws8GNscAytzcTQHcc4fOXm6GZREU1IUhkfTSqud6QV6KYhq0vOwHua7DaFMEt6WGhWHmytW742xVrx9uQW/osbGlzTvAN1iyREWxB80bZvwQrCDIB9/BiVNXMMIlkf2BabZSQnhG420GCl7o7p7NHnzeT7MFwQwCpvIWBFCH2pnPUm4eG+OcIx1/OStlbZ7kLFiJ2NKX9+l8C64JuYGb+NosYLgOKrhp3xJ1PIOUR6am0HkrFgTg4gKtG8e5a8CXah5vjEs6hyJ5JoWiA6y/OH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4FqROvdgIONth+8kSK//Y/4ihuE4Ymvzn5ceE3S/iBSQQMjyvb+s2TWbQYDwcp129OPIbD9epdr4tJOUNiSojw7BHwYRiPh58S1xGlFgHFXwrEBb3dgNbMUa+u4qectsMAXpVHnD9wIyfmHMYIBmjCCAZYCAQEwgZQwgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwuY29tAgEAMAkGBSsOAwIaBQCgXTAYBgkqhkiG9w0BCQMxCwYJKoZIhvcNAQcBMBwGCSqGSIb3DQEJBTEPFw0xMjA0MjkyMjExMDlaMCMGCSqGSIb3DQEJBDEWBBTYmdPZztbYgMTVJn7rVmUgB/ULsjANBgkqhkiG9w0BAQEFAASBgDmi++A0E6CvVwX3829Y2R3RmVUvtQzzqjM/Bdu8QDf5QnqwQqgt2A051eA7DgaPIXM7K8MkhT0H1/1iwRhlzuXmndyGqws6UGIc/lXivf3q64W1qmHToQbJBTWgcoUnY4M08g5p1Pt5L4H/7xQzfgRm7cexYcbgEylPJ6n1/Tql-----END PKCS7-----">
                            <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_subscribeCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
                            <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
                        </form>
                    </div>
                    
</div>

    <script src="js/jquery.js"></script>
    <script src="js/bootstrap-transition.js"></script>
    <script src="js/bootstrap-alert.js"></script>
    <script src="js/bootstrap-modal.js"></script>
    <script src="js/bootstrap-dropdown.js"></script>
    <script src="js/bootstrap-scrollspy.js"></script>
    <script src="js/bootstrap-tab.js"></script>

    <script src="js/bootstrap-tooltip.js"></script>
    <script src="js/bootstrap-popover.js"></script>
    <script src="js/bootstrap-button.js"></script>
    <script src="js/bootstrap-collapse.js"></script>
    <script src="js/bootstrap-carousel.js"></script>
    <script src="js/bootstrap-typeahead.js"></script>
    <script src="js/jquery.cycle.all.js"></script>
</body>
</html>
